package com.company.eos.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * OA审批流详情表
 *
 * @TableName tb_audit_detail
 */
@TableName(value = "tb_audit_detail")
@Data
public class AuditDetail implements Serializable {
    /**
     * 主键ID，自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 审批流ID，对应于flow表中的主键
     */
    @TableField(value = "flow_id")
    private Integer flowId;

    /**
     * 审批人ID，对应于user_id
     */
    @TableField(value = "audit_user_id")
    private Integer auditUserId;

    /**
     * 审批备注
     */
    @TableField(value = "audit_remark")
    private String auditRemark;

    /**
     * 审批时间
     */
    @TableField(value = "audit_time")
    private Date auditTime;

    /**
     * 审核状态：1待审批2已结束
     */
    @TableField(value = "audit_status")
    private String auditStatus;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
